package com.itheima.demo03;

public class Manager extends Employee {
    //经理

    //1.定义私有成员变量
    private double bonus;//奖金

    //2.定义空参、全参构造方法
    public Manager() {
    }

    public Manager(String id, String name, double salary, double bonus) {
        super(id, name, salary);
        this.bonus = bonus;
    }

    //3.定义set/get方法
    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    @Override
    public void word() {//重新父类工作方法
        System.out.println("经理管理其他人员");
    }
}
